//
//  CallManager.h
//  jmGouTong
//
//  Created by 王大虎 on 2022/9/22.
//  Copyright © 2022 seclery. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Call.h"
@import CallKit;

NS_ASSUME_NONNULL_BEGIN

@interface CallManager : NSObject

@property (nonatomic ,copy) void (^callsChangedHandler)(void);
@property (strong, nonatomic) NSMutableArray * calls;
-(Call *)callWithUUID:(NSUUID *)uuid;
-(void)add:(Call *)call;
-(void)startCallWithHandle:(NSString *)handle VideoEnabled:(BOOL)videoEnabled;
-(void)end:(Call *)call;
-(void)setHeld:(Call *)call onHold:(BOOL)onHold;
-(void)remove:(Call *)call;
-(void)removeAllCalls;








@end

NS_ASSUME_NONNULL_END
